﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

/// <summary>
/// Summary description for BWChangePassTVV
/// </summary>
namespace BCDataCenter.BOL
{
    public class BWChangePassTVV
    {
        public BWChangePassTVV()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public DataSet dsGetTenTVV(ref string error, string Salesp_Key)
        {
            return new DataAccessLayer.DAL().MyExecuteQuery(ref error, "Tr_getTenTVV", CommandType.StoredProcedure,
               new SqlParameter("@salesp_key", Salesp_Key));
        }
        public bool ChangePassword(ref string error, string MaTVV, string NewPass)
        {
            return new DataAccessLayer.DAL().MyExecuteNonQuery("Tr_ChangePassTVV", CommandType.StoredProcedure,
                ref error, new SqlParameter("@salesp_key", MaTVV),
                   new SqlParameter("@Password", NewPass));
        }
    }
}